package com.ali8ba.common;

import java.util.List;

/**
 * 分页
 * 
 * @author xiamu
 * 
 * @param <T>
 */
public class PageInfo<T> {

	/**
	 * 页大小
	 */
	private int pageSize;
	/**
	 * 总记录数
	 */
	private int totalRows;
	/**
	 * 总页数
	 */
	private int totalPages;
	/**
	 * 当前页码
	 */
	private int currentPage;

	/**
	 * 分页数据
	 */
	private List<T> itemList;

	public PageInfo() {

	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getTotalRows() {
		return totalRows;
	}

	public void setTotalRows(int totalRows) {
		this.totalRows = totalRows;
	}

	public int getTotalPages() {
		return totalPages;
	}

	public void setTotalPages(int totalPages) {
		this.totalPages = totalPages;
	}

	public int getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}

	public List<T> getItemList() {
		return itemList;
	}

	public void setItemList(List<T> itemList) {
		this.itemList = itemList;
	}

}
